/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controle;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Fellipe de Souza
 */
@WebServlet(name = "trataIndex", urlPatterns = {"/trataIndex"})
public class trataIndex extends Comando {

    public void execute() throws ServletException, IOException, SQLException {
        getResponse().setContentType("text/html;charset=UTF-8");
        PrintWriter out = getResponse().getWriter();
        try {
            /* TODO output your page here*/
            
            out.println();

            out.println("<html>");
            out.println("<head>");
            out.println("<title>Informações Fornecidas</title>");  
            out.println("</head>");
            out.println("<body>");
            String login = getRequest().getParameter("Login");
            out.println("Login : " + login);
            String senha = getRequest().getParameter("Senha");
            out.println("<br/>Senha : " + senha);
            out.println("</body>");
            out.println("</html>");
        } finally {            
            out.close();
        }
    }
}
